package model;

import java.util.Date;

import javax.persistence.Id;
import com.googlecode.objectify.*;

public class EventUser {
	@Id Long id;
	Key<EventInfo> event;
	Key<UserProfile> user;
	
	String jid;
	Date createtime;
	
	public EventUser() {
	}
	
	public EventUser(long eid, String uid) {		
		event = new Key<EventInfo>(EventInfo.class, eid);
		user = new Key<UserProfile>(UserProfile.class, uid);
		createtime = new Date();
	}
	public Key<UserProfile> getUser() {
		return user;
	}

	public void setUser(Key<UserProfile> user) {
		this.user = user;
	}

	public String getJid() {
		return jid;
	}

	public void setJid(String jid) {
		this.jid = jid;
	}

}
